package com.linmo.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ChatBotThread {
    private static final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());

    public static void execute(Runnable task){
        executor.execute(task);
    }

    public static void shutdown(){
        executor.shutdown();
    }
}
